﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace FundRaising.GUI
{
    public partial class EditFund2 : System.Web.UI.Page
    {

        public static string Proj = null;
        public static string NewDomain = null;
        
        protected void Page_Load(object sender, EventArgs e)
        {
            GUI.EditRequest.first = true;
            GUI.EditRequest.first2 = true;
        }

       

        protected void DetailsView3_ItemInserting(object sender, DetailsViewInsertEventArgs e)
        {
            Proj = DropDownList1.SelectedValue;
        }

        protected void DetailsView3_PageIndexChanging(object sender, DetailsViewPageEventArgs e)
        {

        }

        protected void ListView1_ItemInserting(object sender, ListViewInsertEventArgs e)
        {
            Proj = DropDownList1.SelectedValue;
             ListView1.FindControl("DDL");
             DropDownList ddl = new DropDownList();
             ddl = (DropDownList)e.Item.FindControl("DDL");
             if (ddl != null)
                 e.Values["DomainName"] = ((ddl.SelectedValue));
        }

        protected void ListView1_ItemDataBound(object sender, ListViewItemEventArgs e)
        {
            if (ListView1.EditItem != null)
            {
                DropDownList ddl = (DropDownList)ListView1.EditItem.FindControl("DDL");
                //ddl.DataBind();
            }
        }

        protected void DetailsView1_ItemDeleted(object sender, DetailsViewDeletedEventArgs e)
        {
            Response.Redirect("EditFund2.aspx");
        }

        protected void DetailsView1_ItemInserted(object sender, DetailsViewInsertedEventArgs e)
        {
            Response.Redirect("EditFund2.aspx");
        }

       

       

        

       

       

        

        

      
    }
}
